package com.jingjiu.homeservicesapi.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 留言板：记录用户的留言信息对象 message_board
 * 
 * @author ruoyi
 * @date 2025-04-16
 */
public class MessageBoard extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 留言ID */
    private Long id;

    /** 留言内容 */
    @Excel(name = "留言内容")
    private String content;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String imageUrl;

    /** 留言时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "留言时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 留言人 */
    @Excel(name = "留言人")
    private String authorName;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String contactInfo;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setAuthorName(String authorName) 
    {
        this.authorName = authorName;
    }

    public String getAuthorName() 
    {
        return authorName;
    }

    public void setContactInfo(String contactInfo) 
    {
        this.contactInfo = contactInfo;
    }

    public String getContactInfo() 
    {
        return contactInfo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("content", getContent())
            .append("imageUrl", getImageUrl())
            .append("createdAt", getCreatedAt())
            .append("authorName", getAuthorName())
            .append("contactInfo", getContactInfo())
            .toString();
    }
}
